From: Carlos Garnacho Date: Mon, 29 Jan 2024 14:44:38 +0000 (+0100) Subject: keyboard: Support OSK layout modes explicitly X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~1^2~68 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4d71d9f46d7bcc9dd5dadf27fbba575f5d589a25;p=gnome-shell.git keyboard: Support OSK layout modes explicitly We only support "latched" which stays toggled on for a single character unless long-pressed. Support "default" mode explicitly to switch back to the default level, leaving "locked" implicitly supported as the way to stay in the same level. Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 1dc369ff1..fe9db59c7 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -1440,7 +1440,8 @@ export const Keyboard = GObject.registerClass({ if (key.action !== 'modifier') { button.connect('commit', (_actor, keyval, str) => { this._commitAction(keyval, str).then(() => { - if (layout.mode === 'latched' && !this._latched) + if (layout.mode === 'default' || + (layout.mode === 'latched' && !this._latched)) this._setActiveLevel('default'); }); });